package com.feicheng.iou.mapper;

import com.feicheng.iou.entity.Interview;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feicheng.iou.entity.ReservationInterview;
import com.feicheng.iou.pojo.InterviewPOJO;
import com.feicheng.iou.pojo.ResourcePOJO;
import com.feicheng.iou.pojo.ResultInterviewPOJO;
import com.feicheng.iou.pojo.ResultResourcePOJO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
public interface InterviewMapper extends BaseMapper<Interview> {

    List<ResultInterviewPOJO> queryInterviewAll(InterviewPOJO interviewPOJO);

    Integer queryInterviewAllCount(InterviewPOJO interviewPOJO);

    /**
     * @Author wuweinan
     * @Description  查询出对应用户的总接待数
     * @Date 2021-8-9 17:19
     * @param autorId
     * @return autorId
     */
    Integer statisticsInterviewCount(@Param("searchStartTime") LocalDateTime searchStartTime,
                                     @Param("searchEndTime") LocalDateTime searchEndTime,
                                     @Param("autorId") Integer autorId);


    /**
     * @Author wuweinan
     * @Description  查询出对应用户的有效到访总条数
     * @Date 2021-8-9 17:19
     * @param autorId
     * @return autorId
     */
    Integer statisticsValidInterviewCount(@Param("searchStartTime") LocalDateTime searchStartTime,
                                          @Param("searchEndTime") LocalDateTime searchEndTime,
                                          @Param("autorId")  Integer autorId);


    /**
     * @Author wuweinan
     * @Description  统计出今日已办到访
     * @Date 2021-8-9 17:19
     * @param autorId
     * @return autorId
     */
    Integer selectHandleInterviewToday(@Param("todayStart") LocalDateTime todayStart,
                                       @Param("todayEnd") LocalDateTime todayEnd,
                                       @Param("autorId") Integer autorId);


}
